package com.motong.gongdan.vo.system.device.query;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

@Data
@ApiModel("开机率看板请求")
@Accessors(chain = true)
public class StartupRateDashboardQuery {

    @ApiModelProperty("分组id")
    public String groupId;

    @ApiModelProperty(value = "数据更新间隔")
    private Integer dataUpdateInterval = 10;

    @ApiModelProperty("显示关机时长")
    public Boolean showClose = false;

    @ApiModelProperty(value = "按绿灯时长比降序排序(0 否,1 是)")
    private Integer orderByGreenRate = 0;

    @ApiModelProperty(value = "页项数")
    private Integer limit = -1;

    @ApiModelProperty(value = "页码", hidden = true)
    private Integer page = 1;

    @ApiModelProperty(value = "开始时间", hidden = true)
    public Date startTime;

    @ApiModelProperty(value = "结束时间", hidden = true)
    public Date endTime;

    @ApiModelProperty(value = "根据设备id聚合", hidden = true)
    public Boolean groupByDeviceId = true;

    @ApiModelProperty(value = "根据天数聚合", hidden = true)
    public Boolean groupByDay = false;

    @ApiModelProperty(value = "根据时间聚合(不聚合)", hidden = true)
    public Boolean groupByTime = false;

    @ApiModelProperty(value = "设备id", hidden = true)
    public Long deviceId;

    @ApiModelProperty(value = "获取其余灯时长比例", hidden = true)
    public Boolean getOtherColorRate = false;
}
